
************************************************************************
** Appendix Table 3: Pre-levels for e-wallet and other payment techs
************************************************************************	

use "$datadir\ewallet\maindata.dta", clear	
	
	keep if $filters & time_id == 35
	local controls "share_rural logpop_T l_preshockdeposit201604 s_status_atm s_status_commercialbank"
	local opt "bdec(3) excel nonotes"
	
	**** pre-tech penetration
	reg amount_perpop invshare_sd `controls' , robust cluster(district_id)
	outreg2 using "$outputdir_tab\Table_H_3.xls", replace `opt' keep(invshare_sd)	nocons

	foreach var in  trans_perpop  numfirms_perpop {
		reg `var' invshare_sd `controls' , robust cluster(district_id)
		outreg2 using "$outputdir_tab\Table_H_3.xls", append `opt' keep(invshare_sd)	nocons
	}
	
	**** other technologies	
	foreach var in  cc_rate mobile_rate bank_rate {
		reg `var' invshare_sd `controls' , robust cluster(district_id)
		outreg2 using "$outputdir_tab\Table_H_3.xls", append `opt' keep(invshare_sd)	nocons
	}
